package cn.wolfcode.util;

import cn.wolfcode.domain.Department;
import lombok.Getter;
import lombok.Setter;

import java.util.List;

//分页参数
@Getter
@Setter
public class QueryObject {
    // 关键字
    private String keyword;
    private int pageSize=5;// 每页几条
    private int currentPage=1;// 当前页,跳转到第几
    //计算分页的起始页
    public int getBeginIndex(){
        return (currentPage - 1) * pageSize;
    }
}
